﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using System.Web.Routing;
using System.Web.Script.Serialization;
using System.Xml.Serialization;
using Vit.Common;
using Vit.Web.Providers;
using Vit.Web;
using Vit.Web.Mvc.DataAnnotations;
using Vit.Web.Models;

namespace Vit.Web.Models
{
    public class NavigationGroup
    {
        [Key]
        [Required]
        [ReadOnlyOn(false, true)]
        [StringLength(50)]
        public string Name { get; set; }
        [StringLength(50)]
        [Required]
        public string Caption { get; set; }
        [ScriptIgnore]
        [XmlIgnore]
        public virtual ICollection<NavigationItem> Items { get; set; }
        [ScriptIgnore]
        [XmlIgnore]
        public virtual WebSite Site { get; set; }
    }
}
